runOnStartup(async runtime => {
    runtime.addEventListener("tick", () => tick())
    runtime.getLayout("MainLevel").addEventListener("afterlayoutstart", () => init())
});
function tick() {
    if (runtime.layout.name != "MainLevel") return;
}
function init() {
    playerSelfdata.playerHeart = 3
    playerSelfdata.initHeart = playerSelfdata.playerHeart
    playerSelfdata.Score = 0
    playerSelfdata.LiveTime = 0 //s 
}
globalThis.playerSelfdata = {
}
export default playerSelfdata